﻿#include <QApplication>

#include "InsourcedTranslator.h"
#include "InsourcedTranslatorTestWidget.h"

int main(int argc, char *argv[]) {
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
    QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
    QApplication app(argc, argv);

    InsourcedTranslator::LoadTranslations();
    InsourcedTranslator::SetLanguage(QLocale(QLocale::Chinese, QLocale::China));

    InsourcedTranslatorTestWidget insourceTranslatorTestWidget;
    insourceTranslatorTestWidget.show();

    return app.exec();
}
